- add_page_specific_style 'page_bundles/import'
- provider = local_assigns.fetch(:provider).to_sym
- extra_data = local_assigns.fetch(:extra_data, {})
- filterable = local_assigns.fetch(:filterable, true)
- paginatable = local_assigns.fetch(:paginatable, false)
- default_namespace_path = (local_assigns[:default_namespace] || current_user.namespace).full_path
- cancel_path = local_assigns.fetch(:cancel_path, nil)
- details_path = local_assigns.fetch(:details_path, nil)
- provider_title = Gitlab::ImportSources.title(local_assigns.fetch(:provider))
- optional_stages = local_assigns.fetch(:optional_stages, [])
- status_import_github_group_path = local_assigns.fetch(:status_import_github_group_path, '')

- header_title _("New project"), new_project_path
- add_to_breadcrumbs s_('ProjectsNew|Import project'), new_project_path(anchor: 'import_project')

#import-projects-mount-element{ data: { provider: provider, provider_title: provider_title,
                               can_select_namespace: current_user.can_select_namespace?.to_s,
                               ci_cd_only: has_ci_cd_only_params?.to_s,
                               repos_path: url_for([:status, :import, provider, { format: :json }]),
                               jobs_path: url_for([:realtime_changes, :import, provider, { format: :json }]),
                               default_target_namespace: default_namespace_path,
                               import_path: url_for([:import, provider, { format: :json }]),
                               status_import_github_group_path: status_import_github_group_path,
                               cancel_path: cancel_path,
                               details_path: details_path,
                               filterable: filterable.to_s,
                               paginatable: paginatable.to_s,
                               optional_stages: optional_stages.to_json }.merge(extra_data) }
